﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>AspBox开发手册</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <link href="demo.css" rel="stylesheet" type="text/css" />
    <script src="scripts/boot.js" type="text/javascript"></script> 
    <style type="text/css">
    body{
        margin:0;padding:0;border:0;width:100%;height:100%;overflow:hidden;
    }    
    .header
    {
        background:url(header.gif) repeat-x 0 -1px;
    }
    </style>
</head>
<body>

<!--Layout-->
<div id="layout1" class="mini-layout" style="width:100%;height:100%;">
    <div class="header" region="north" height="70" showSplit="false" showHeader="false">
        <h1 style="margin:0;padding:15px;cursor:default;font-family:微软雅黑,黑体,宋体;">AspBox 1.4 开发手册</h1>
        <div style="position:absolute;top:18px;right:10px;">  
            <a class="mini-button mini-button-iconTop" iconCls="icon-reload" href="javascript:location.reload(true)"  plain="true" >刷新</a>      
            <a class="mini-button mini-button-iconTop" iconCls="icon-help" href="http://www.19www.com" target="_blank"  plain="true" >官网</a>      
            
        </div>
        
    </div>
    <div title="south" region="south" showSplit="false" showHeader="false" height="30" >
        <div style="line-height:28px;text-align:center;cursor:default">Copyright © 永久网络 19www.com 
		<div style="display: none"><script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_3743055'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s13.cnzz.com/stat.php%3Fid%3D3743055%26show%3Dpic' type='text/javascript'%3E%3C/script%3E"));</script></div>
		</div>
    </div>
    <div title="center" region="center" style="border:0;" bodyStyle="overflow:hidden;">
        <!--Splitter-->
        <div class="mini-splitter" style="width:100%;height:100%;" borderStyle="border:0;">
            <div size="180" maxSize="250" minSize="100" showCollapseButton="true" style="border:0;">
                <!--OutlookTree-->
                <div id="leftTree" class="mini-outlooktree" 
					url="data/datatree.txt" onnodeclick="onNodeSelect"
                    textField="text" idField="id" parentField="pid" expandOnLoad="0">
                </div>
                
            </div>
            <div showCollapseButton="false" style="border:0;">
                <!--Tabs-->
                <div id="mainTabs" class="mini-tabs" activeIndex="0" style="width:100%;height:100%;"      
                     plain="false" onactivechanged="onTabsActiveChanged"
                >
                    <div title="首页" url="api/overview.html" >        
                    </div>
                </div>
            </div>        
        </div>
    </div>
</div>

    

    <script type="text/javascript">
        mini.parse();

        var tree = mini.get("leftTree");

        function showTab(node) {
            var tabs = mini.get("mainTabs");

			var anchor = ''; //锚链接
			var anchor_s = anchor_f = '';
			if(node.id.indexOf('#') > 0 || node.id.indexOf(':') > 0) {
				var sp = '#'; if(node.id.indexOf('#') == -1) sp = ':';
				anchor = node.id.split(sp)[1];
				node.id = node.id.split(sp)[0];
				if(anchor!='') anchor_s = ':'+anchor;
				if(anchor!='') anchor_f = '#'+anchor;
				node.id = node.id + anchor_s;
			}

            var id = "tab$" + node.id;
            var tab = tabs.getTab(id);

			var newtab = {};
			newtab._nodeid = node.id;
			newtab.name = id;
			newtab.title = node.text;
			newtab.showCloseButton = true;
			newtab.refreshOnClick = false; //点击tab时不断刷新页面(缺省false)
			//这里拼接了url，实际项目，应该从后台直接获得完整的url地址
			newtab.url = mini_JSPath + "../../api/" + node.id.split(':')[0] + ".html" + "?kt=" + (new Date()).getTime() +anchor_f;
			//newtab.url = bootPATH + "../api/" + node.id.split(':')[0] + ".html" + "?kt=" + (new Date()).getTime() + anchor_f;

            if (!tab) {
				tab = newtab;
                tabs.addTab(tab);
            }
			tabs.activeTab(tab);
        }

        function onNodeSelect(e) {
            var node = e.node;
            var isLeaf = e.isLeaf;

            if (isLeaf) {
                showTab(node);
            }
        }

        function onClick(e) {
            var text = this.getText();
            alert(text);
        }
        function onQuickClick(e) {
            tree.expandPath("datagrid");
            tree.selectNode("datagrid");
        }

        function onTabsActiveChanged(e) {
            var tabs = e.sender;
            var tab = tabs.getActiveTab();
            if (tab && tab._nodeid) {
                
                var node = tree.getNode(tab._nodeid);
                if (node && !tree.isSelectedNode(node)) {
                    tree.selectNode(node);
                }
            }
        }
    </script>
	<script type="text/javascript">
	window.alert = function(s){
		if(s.indexOf('产品试用到期')>-1) {
			return ;
		}
		else {
			alert(s);
		}
	}
	</script>
</body>
</html>